﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Coupons.Models
{
	[DataContract]
	public class CartDiscount : ERPStore.Models.IDiscount
	{
		public int Id { get; set; }
		public DateTime LastUpdate { get; set; }
		public int InternalEntityId { get; set; }

		#region IDiscount Members

		[DataMember]
		public decimal Discount { get; set; }
		[DataMember]
		public decimal DiscountWithTax { get; set; }
		[DataMember]
		public string Code { get; set; }
		[DataMember]
		public string DiscountReason { get; set; }
		[DataMember]
		public DateTime CreationDate { get; set; }
		[IgnoreDataMember]
		public string ProviderName { get; set; }

		#endregion

		public Coupon CouponSource { get; set; }
	}
}
